#!/bin/bash
echo "writing nodemcu_512k_latest.bin"
sudo python ./flash/esptool.py --port /dev/tty.wchusbserial1410 write_flash 0x00000 nodemcu_latest.bin
#sudo python ./flash/esptool.py --port /dev/tty.SLAB_USBtoUART write_flash 0x00000 nodemcu_latest.bin
#sudo python ./flash/esptool.py --port /dev/tty.usbserial write_flash 0x00000 nodemcu_latest.bin

echo "Finished."

